import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { NgxEchartsModule } from 'ngx-echarts';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { NgZorroAntdModule, NZ_I18N, zh_CN } from 'ng-zorro-antd';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { appRoutes } from './app-routing';
// 业务模块
import { MarketDataModule } from './market-data/market-data.module';
import { tradePlatformModule } from './trade-platform/trade-platform.module';
import { rankListModule } from './rank-list/rank-list.module';
import { conceptDataModule } from './concept-data/concept-data.module';
// 组件
import { AppComponent } from './app.component';
import { TopMenuComponent } from './com-layout/top-menu/top-menu.component';
import { BlockNavComponent } from './block-nav/block-nav.component';
import { LoginComponent } from './login/login.component';
import { FooterMenuComponent } from './com-layout/footer-menu/footer-menu.component';
//


registerLocaleData(zh);

@NgModule({
  declarations: [
    AppComponent,
    TopMenuComponent,
    BlockNavComponent,
    LoginComponent,
    FooterMenuComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    CommonModule,
    HttpClientModule,
    NgxEchartsModule,
    MarketDataModule,
    tradePlatformModule,
    rankListModule,
    conceptDataModule,
    NgZorroAntdModule,
    BrowserAnimationsModule,
    RouterModule.forRoot(appRoutes),
  ],
  providers: [{ provide: NZ_I18N, useValue: zh_CN }],
  bootstrap: [AppComponent]
})
export class AppModule { }
